package com.tledu.cyrus.web;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author cyrus
 */
@WebServlet("/requestA")
public class RequestAServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        // 处理不了,交给B
        req.setAttribute("msg","消息A");
        req.getRequestDispatcher("/requestB").forward(req, resp);
    }
}
